FILE *fileptr = NULL; /* a pointer to a file handle */
FILE *tempptr = NULL;
struct List *list;
struct NameNode *node;
int i;
struct EasyStruct yesno = {
sizeof(struct EasyStruct), 0, "GroceryList",
"%s",
"OK|CANCEL",
};
if (GrocList->lh_TailPred == (struct Node *)GrocList)
{
EasyRequest(window, &myES, NULL, "Grocery List empty.\nTo use this option, fill the grocery list with the\nitems in the meal and put the meal name\nin the ITEM box. Then select CREATE MEAL");
return; /* empty list */
}
if (strlen(((struct StringInfo *)mygad[MYGAD_ITEM]->SpecialInfo)->Buffer) < 1)
{
EasyRequest(window, &myES, NULL, "Item Field empty.\nTo use this option, fill the grocery list with the\nitems in the meal and put the meal name\nin the ITEM box. Then select CREATE MEAL");
return; /* empty list */
}
sprintf(buffer,"Copy current list to a meal item\ncalled %s?",